package com.quanyan;

import com.quanyan.common.constants.Constants;

import java.io.Serializable;

/**
 * @author songzj
 * @date 16/4/20-22:28
 */
public class BaseRequest implements Serializable {

    private static final long serialVersionUID = -8463611766401131791L;

    private Integer pageNo = 0;  //当前页

    private Integer pageSize = Constants.DEFAULT_PAGE_SIZE; //每页条数


    private String sourceSystemId; //系统ID

    private String sourceBusinessId; //业务ID

    private String ver;                //App版本号

    private Integer protocol_ver;      //协议版本号

    private Integer platformType;    //平台  1:iOS 2: Android 3 :WEIXIN 4 :H5 5:后台

    private int larkAppId = 1; //百灵鸟AppId：1、百灵鸟；2、百灵鸟（公测版）；3、百灵鸟达人B端



    public Integer getPlatformType() {
        return platformType;
    }

    public void setPlatformType(Integer platformType) {
        this.platformType = platformType;
    }

    public String getVer() {
        return ver;
    }

    public void setVer(String ver) {
        this.ver = ver;
    }

    public Integer getProtocol_ver() {
        return protocol_ver;
    }

    public void setProtocol_ver(Integer protocol_ver) {
        this.protocol_ver = protocol_ver;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo == null ? Constants.DEFAULT_PAGE_NUM : pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize == null ? Constants.DEFAULT_PAGE_SIZE : pageSize;
    }

    public String getSourceSystemId() {
        return sourceSystemId;
    }

    public void setSourceSystemId(String sourceSystemId) {
        this.sourceSystemId = sourceSystemId;
    }

    public String getSourceBusinessId() {
        return sourceBusinessId;
    }

    public void setSourceBusinessId(String sourceBusinessId) {
        this.sourceBusinessId = sourceBusinessId;
    }

    public int getLarkAppId() {
        return larkAppId;
    }

    public void setLarkAppId(int larkAppId) {
        this.larkAppId = larkAppId;
    }

    @Override
    public String toString() {
        return "BaseRequest{" +
                "pageNo=" + pageNo +
                ", pageSize=" + pageSize +
                ", sourceSystemId='" + sourceSystemId + '\'' +
                ", sourceBusinessId='" + sourceBusinessId + '\'' +
                ", ver='" + ver + '\'' +
                ", protocol_ver=" + protocol_ver +
                ", platformType=" + platformType +
                ", larkAppId=" + larkAppId +
                '}';
    }
}
